package com.kelaite.procurement.dto;

import java.util.Date;

public class PurchaseOrderItemsDTO {

	private Long id;

	private PurchaseOrderDTO tPurchaseOrder;

	private int orderItemNo;

	private MaterialMasterClientDTO tMaterialMasterClient;

	private Double quantity;

	private Double unitPrice;

	private Double subTotal;

	private String materialPic; // 冗余字段

	private Double quantityDelivered;

	private Double quantityConfirmed;

	private Date planedTime;

	private Date actualTime;

	private Date gmtCreateTime;

	private Date gmtUpdateTime;

	private String createdBy;

	private String updatedBy;

	private boolean isDelete;

	// ////////////////////////////////////////////////

	private Long purchaseOrderId;

	private Long unitId;

	private Long materialId;

	public PurchaseOrderItemsDTO() {

	}

	public Long getId() {

		return id;
	}

	public void setId(Long id) {

		this.id = id;
	}

	public PurchaseOrderDTO gettPurchaseOrder() {

		return tPurchaseOrder;
	}

	public void settPurchaseOrder(PurchaseOrderDTO tPurchaseOrder) {

		this.tPurchaseOrder = tPurchaseOrder;
	}

	public int getOrderItemNo() {

		return orderItemNo;
	}

	public void setOrderItemNo(int orderItemNo) {

		this.orderItemNo = orderItemNo;
	}

	public MaterialMasterClientDTO gettMaterialMasterClient() {

		return tMaterialMasterClient;
	}

	public void settMaterialMasterClient(
			MaterialMasterClientDTO tMaterialMasterClient) {

		this.tMaterialMasterClient = tMaterialMasterClient;
	}

	public Double getQuantity() {

		return quantity;
	}

	public void setQuantity(Double quantity) {

		this.quantity = quantity;
	}

	public Double getUnitPrice() {

		return unitPrice;
	}

	public void setUnitPrice(Double unitPrice) {

		this.unitPrice = unitPrice;
	}

	public Double getSubTotal() {

		return subTotal;
	}

	public void setSubTotal(Double subTotal) {

		this.subTotal = subTotal;
	}

	public String getMaterialPic() {

		return materialPic;
	}

	public void setMaterialPic(String materialPic) {

		this.materialPic = materialPic;
	}

	public Double getQuantityDelivered() {

		return quantityDelivered;
	}

	public void setQuantityDelivered(Double quantityDelivered) {

		this.quantityDelivered = quantityDelivered;
	}

	public Double getQuantityConfirmed() {

		return quantityConfirmed;
	}

	public void setQuantityConfirmed(Double quantityConfirmed) {

		this.quantityConfirmed = quantityConfirmed;
	}

	public Date getPlanedTime() {

		return planedTime;
	}

	public void setPlanedTime(Date planedTime) {

		this.planedTime = planedTime;
	}

	public Date getActualTime() {

		return actualTime;
	}

	public void setActualTime(Date actualTime) {

		this.actualTime = actualTime;
	}

	public Date getGmtCreateTime() {

		return gmtCreateTime;
	}

	public void setGmtCreateTime(Date gmtCreateTime) {

		this.gmtCreateTime = gmtCreateTime;
	}

	public Date getGmtUpdateTime() {

		return gmtUpdateTime;
	}

	public void setGmtUpdateTime(Date gmtUpdateTime) {

		this.gmtUpdateTime = gmtUpdateTime;
	}

	public String getCreatedBy() {

		return createdBy;
	}

	public void setCreatedBy(String createdBy) {

		this.createdBy = createdBy;
	}

	public String getUpdatedBy() {

		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {

		this.updatedBy = updatedBy;
	}

	public boolean isDelete() {

		return isDelete;
	}

	public void setDelete(boolean isDelete) {

		this.isDelete = isDelete;
	}

	public Long getPurchaseOrderId() {

		return purchaseOrderId;
	}

	public void setPurchaseOrderId(Long purchaseOrderId) {

		this.purchaseOrderId = purchaseOrderId;
	}

	public Long getUnitId() {

		return unitId;
	}

	public void setUnitId(Long unitId) {

		this.unitId = unitId;
	}

	public Long getMaterialId() {

		return materialId;
	}

	public void setMaterialId(Long materialId) {

		this.materialId = materialId;
	}

	@Override
	public String toString() {

		return "PurchaseOrderItemsDTO [id=" + id + ", tPurchaseOrder="
				+ tPurchaseOrder + ", orderItemNo=" + orderItemNo
				+ ", tMaterialMasterClient=" + tMaterialMasterClient
				+ ", quantity=" + quantity + ", unitPrice=" + unitPrice
				+ ", subTotal=" + subTotal + ", materialPic=" + materialPic
				+ ", quantityDelivered=" + quantityDelivered
				+ ", quantityConfirmed=" + quantityConfirmed + ", planedTime="
				+ planedTime + ", actualTime=" + actualTime
				+ ", gmtCreateTime=" + gmtCreateTime + ", gmtUpdateTime="
				+ gmtUpdateTime + ", createdBy=" + createdBy + ", updatedBy="
				+ updatedBy + ", isDelete=" + isDelete + ", purchaseOrderId="
				+ purchaseOrderId + ", unitId=" + unitId + ", materialId="
				+ materialId + "]";
	}

}
